package com.hyjx.framework.service.model;

import com.hyjx.framework.uc.role.RoleMenuModel;
import com.hyjx.framework.uc.role.RoleModel;
import com.hyjx.framework.uc.role.RoleOrgModel;

import java.io.Serializable;
import java.util.Map;

/**
 * 缓存子系统、菜单、操作
 *
 * @author Peter
 */
@SuppressWarnings("serial")
public class CacheRole implements Serializable {
    private String roleId;
    private RoleModel role;
    private String userIds;

    public String getUserIds() {
        return userIds;
    }

    public void setUserIds(String userIds) {
        this.userIds = userIds;
    }

    public CacheRole(String roleId, RoleModel role) {
        super();
        this.roleId = roleId;
        this.role = role;
    }

    Map<String, RoleOrgModel> roleorgs;
    Map<String, RoleMenuModel> rolemenus;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public RoleModel getRole() {
        return role;
    }

    public void setRole(RoleModel role) {
        this.role = role;
    }

    public Map<String, RoleOrgModel> getRoleorgs() {
        return roleorgs;
    }

    public void setRoleorgs(Map<String, RoleOrgModel> roleorgs) {
        this.roleorgs = roleorgs;
    }

    public Map<String, RoleMenuModel> getRolemenus() {
        return rolemenus;
    }

    public void setRolemenus(Map<String, RoleMenuModel> rolemenus) {
        this.rolemenus = rolemenus;
    }
}